package com.company;

import java.math.BigDecimal;
import java.net.MalformedURLException;

import com.company.Thread.UserInfo;

import cn.hutool.core.util.StrUtil;

public class StringMain {
    public static void main(String[] args) {

        long n = 3;
        int s = 3;
        System.out.println(n == s);

        try {
            java.net.URL url = new java.net.URL("http://10.16.2.235/myx/ccs-admin-web/finbud/budVersion/page");
            String path = url.getFile();
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

        UserInfo userInfo = new UserInfo();

        System.out.println(!Boolean.TRUE.equals(userInfo.getFlag()));

        userInfo.setFlag(false);
        System.out.println(!Boolean.TRUE.equals(userInfo.getFlag()));

        double value = 84 + 45 + 78 + 399 + 30 + 61 + 2 + 3 + 5 + 5 + 18 + 210 + 17 + 3 + 54 + 51.5 + 85.66 + 11.66
            + 12.12 + 4.79 + 15.68 + 12.44;

        String test1 = "ALTER TABLE XINJIAN1 MODIFY (XINZNEG1 nvarchar2 ( 200 )  default 1 not null )";
        String test2 = "ALTER TABLE XINJIAN1 MODIFY (XINZNEG1 nvarchar2 ( 200 )  default 1 not null )";

        String str = " 1 ";
        String newstring = str.trim();
        System.out.println(newstring);

        String path = "/122092/122100/122101/122104";
        String[] split = StrUtil.split(path, "/");
        System.out.println(split);

        BigDecimal num = BigDecimal.ZERO;

        for (int i = 0; i < 10; i++) {
            num = num.add(new BigDecimal(i));
        }
        BigDecimal multiply = new BigDecimal("0.10").multiply(num);
        System.out.println(num);
    }
}
